package com.blog.study.study4;

import org.junit.Test;

/**
 * 测试注解.
 *
 * @author 张俊强~.
 * @date 2017/11/21-9:35.
 */
public class TestWrapper {

    @Test
    public void testReturnWrapper(){

        System.out.println(this.getUserInfo("str1", "str2","str3").toString());
    }


    @ReturnWrapper
    public UserInfo getUserInfo(String ... strings){

        for(String str:strings){
            System.out.println(str);
        }


        UserInfo userInfo= new UserInfo();
        userInfo.setUserName("张三");
        userInfo.setUserAge(23);
        userInfo.setUserSex("男");

        return userInfo;
    }

}
